package com.jpa.service;

import java.util.List;
import java.util.Optional;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.jpa.bean.PageBean;
import com.jpa.bean.PageBeanTwo;
import com.jpa.entity.Affairs;

public interface AffairsService {
	public PageBean findAffairsAll(PageBeanTwo two);

	public List<Affairs> findAll();

	public List<Affairs> findAffairsByTitleLike(String title,PageBeanTwo two);
	public List<Affairs>  findAffairsById(Long id);
	public boolean save(Affairs affairs);
	public Affairs findOne(Affairs affairs);
}
